//
//  NSObject+Extension.swift
//  CmiotUnion
//
//  Created by Jianxiang Mao on 2022/10/27.
//

import Foundation

/*
 * Name: NSObject+Extension
 * Description: NSObject处理
 */

extension NSObject {
    
    /// 反射机制，获取类名
    class var nameOfClass: String {
        return NSStringFromClass(self).components(separatedBy: ".").last! as String
    }
    
    /// 生成 cell 的 ID
    class var identifier: String {
        return String(format: "%@_identifier", self.nameOfClass)
    }
}


